package com.hjf.dao;

import java.util.List;
import java.util.Map;

import com.commons.po.DeptPo;
import com.commons.po.PageBean;
import com.commons.po.DeptPo;

public interface DeptPoDao {
	/**查找所有部门*/
	public List<DeptPo> findDeptAll() ;
	/**根据id查找部门*/
	public List<DeptPo> findDeptById(Integer id) ;
	/**根据父id查找部门*/
	public List<DeptPo> findByDeptParent(Integer deptParent) ;
	
	/**添加*/
	public int saveDeptPo(DeptPo entity);
	/**修改*/
	public int updateDeptPo(DeptPo entity);
	/**分页查找部门*/
	public PageBean<DeptPo> findPageByCondition(int pageIndex,int pageSize,Map<String, Object> map);
}
